// const sequelize = require('../config/sequelize.js');
const config = require('../../config/config.js');

module.exports = (sequelize, DataTypes) => {
  return sequelize.define(config.DB_prefix + 'admin_user', {
    // 用户ID
    id: {
      type: DataTypes.INTEGER,
      primaryKey: true,
      allowNull: true,
      autoIncrement: true,
      comment: '用户ID'
    },
    // 用户名
    username: {
      type: DataTypes.STRING,
      allowNull: false,
      comment: '用户名'
    },
    // 密码
    password: {
      type: DataTypes.STRING,
      allowNull: false,
      comment: '密码'
    }
  },{
    timestamps: false,
    freezeTableName: true
  })

}